home *** CD-ROM | disk | FTP | other *** search
- import java.awt.Event;
-
- class StgFrame extends GameFrame {
- protected GameProcess gameprocess;
- protected HitBg hitbg = new HitBg(this, 1);
- protected PlayerShip playership = new PlayerShip(this, 1);
- protected PlayerShot nomalshot = new PlayerShot(this, 6);
- protected PlayerShot homingshot = new PlayerShot(this, 2);
- protected Enemy enemy = new Enemy(this, 256);
- protected Item item = new Item(this, 256);
- protected PlayerShipIndex playershipindex;
- protected Status status = new Status(this, 0L, 180000L, 999999L, 0L, 1, 2, 3);
- protected ColorItemScore YellowItemScore = new ColorItemScore(200, 0);
- protected ColorItemScore RedItemScore = new ColorItemScore(400, 1);
- protected ColorItemScore BlueItemScore = new ColorItemScore(-200, 2);
- protected Ranking ranking = new Ranking();
- protected int nPlayerShipStock;
- protected int nContinue;
- protected int fxPlayerShipPower;
- protected int fxEnemySpeed;
- protected boolean fClear;
- protected StgWorkData stgworkdata;
- protected boolean fPose = false;
- protected boolean fImmortal = false;
- protected boolean fSelect = false;
-
- public StgFrame(JglFrame var1) {
- super(var1);
- this.setRanginkIndex(this.ranking);
- this.nPlayerShipStock = 3;
- this.nContinue = 1;
- this.fxPlayerShipPower = 65536;
- this.fxEnemySpeed = 65536;
- this.fClear = false;
- this.stgworkdata = new StgWorkData();
- this.gameprocess = new InitProcess(this);
- }
-
- private void setRanginkIndex(Ranking var1) {
- int[] var2 = new int[]{18, 14, 6, 13, 0, 29};
- var1.add(new RankingIndex(var2, 180000));
- int[] var3 = new int[]{21, 8, 15, 4, 17, 29};
- var1.add(new RankingIndex(var3, 160000));
- int[] var4 = new int[]{12, 20, 18, 4, 20, 12};
- var1.add(new RankingIndex(var4, 140000));
- int[] var5 = new int[]{29, 10, 0, 19, 14, 29};
- var1.add(new RankingIndex(var5, 120000));
- int[] var6 = new int[]{19, 0, 12, 0, 8, 29};
- var1.add(new RankingIndex(var6, 100000));
- int[] var7 = new int[]{28, 2, 19, 17, 28, 29};
- var1.add(new RankingIndex(var7, 80000));
- int[] var8 = new int[]{28, 6, 19, 18, 28, 29};
- var1.add(new RankingIndex(var8, 60000));
- int[] var9 = new int[]{28, 1, 19, 17, 28, 29};
- var1.add(new RankingIndex(var9, 40000));
- }
-
- public void setHitBg(HitBg var1) {
- this.hitbg = var1;
- }
-
- public void setPlayerShip(PlayerShip var1) {
- this.playership = var1;
- }
-
- public void setNomalShot(PlayerShot var1) {
- this.nomalshot = var1;
- }
-
- public void setHomingShot(PlayerShot var1) {
- this.homingshot = var1;
- }
-
- public void setEnemy(Enemy var1) {
- this.enemy = var1;
- }
-
- public void setItem(Item var1) {
- this.item = var1;
- }
-
- public void setPlayerShipIndex(PlayerShipIndex var1) {
- this.playershipindex = var1;
- }
-
- public void setStatus(Status var1) {
- this.status = var1;
- }
-
- public void setYellowItemScore(ColorItemScore var1) {
- this.YellowItemScore = var1;
- }
-
- public void setRedItemScore(ColorItemScore var1) {
- this.RedItemScore = var1;
- }
-
- public void setBlueItemScore(ColorItemScore var1) {
- this.BlueItemScore = var1;
- }
-
- public void setRanking(Ranking var1) {
- this.ranking = var1;
- }
-
- public void setGameProcess(GameProcess var1) {
- this.gameprocess = var1;
- }
-
- public void setPlayerShipStock(int var1) {
- this.nPlayerShipStock = var1;
- }
-
- public void setContinue(int var1) {
- this.nContinue = var1;
- }
-
- public void setPlayerShipPower(int var1) {
- this.fxPlayerShipPower = var1;
- }
-
- public void setEnemySpeed(int var1) {
- this.fxEnemySpeed = var1;
- }
-
- public void setClear(boolean var1) {
- this.fClear = var1;
- }
-
- public void setStgWorkData(StgWorkData var1) {
- this.stgworkdata = var1;
- }
-
- public HitBg getHitBg() {
- return this.hitbg;
- }
-
- public PlayerShip getPlayerShip() {
- return this.playership;
- }
-
- public PlayerShot getNomalShot() {
- return this.nomalshot;
- }
-
- public PlayerShot getHomingShot() {
- return this.homingshot;
- }
-
- public Enemy getEnemy() {
- return this.enemy;
- }
-
- public Item getItem() {
- return this.item;
- }
-
- public PlayerShipIndex getPlayerShipIndex() {
- return this.playershipindex;
- }
-
- public Status getStatus() {
- return this.status;
- }
-
- public ColorItemScore getYellowItemScore() {
- return this.YellowItemScore;
- }
-
- public ColorItemScore getRedItemScore() {
- return this.RedItemScore;
- }
-
- public ColorItemScore getBlueItemScore() {
- return this.BlueItemScore;
- }
-
- public Ranking getRanking() {
- return this.ranking;
- }
-
- public GameProcess getGameProcess() {
- return this.gameprocess;
- }
-
- public int getPlayerShipStock() {
- return this.nPlayerShipStock;
- }
-
- public int getContinue() {
- return this.nContinue;
- }
-
- public int getPlayerShipPower() {
- return this.fxPlayerShipPower;
- }
-
- public int getEnemySpeed() {
- return this.fxEnemySpeed;
- }
-
- public boolean getClear() {
- return this.fClear;
- }
-
- public StgWorkData getStgWorkData() {
- return this.stgworkdata;
- }
-
- public void run() {
- super.resource.getJglPad();
- if (!this.fPose) {
- this.gameprocess.run();
- switch (this.gameprocess.getAttr()) {
- case 0:
- this.hitbg.action();
- this.playership.action();
- this.enemy.action();
- this.nomalshot.action();
- this.homingshot.action();
- this.item.action();
- return;
- case 1:
- case 2:
- default:
- return;
- case 3:
- this.hitbg.action();
- this.playership.action();
- this.enemy.action();
- this.nomalshot.action();
- this.homingshot.action();
- this.item.action();
- return;
- case 4:
- this.getGameProcess().setAttr(0);
- }
- }
- }
-
- protected boolean putPlayerShip(int var1, int var2, int var3, int var4) {
- this.status.setBom(var3);
- this.playershipindex = new PlayerShipIndex(new Position(0, 8388608, 0), StgData.getSpriteAnimePlayerShipStart(), new Position(98304, 131072, 0), 0, new PlayerShipStart(this), this.nomalshot, this.homingshot, var1, var2, var3, var4);
- return this.playership.add(this.playershipindex);
- }
-
- public boolean action(Event var1, Object var2) {
- return this.gameprocess.action(var1, var2);
- }
-
- public boolean mouseUp(Event var1, int var2, int var3) {
- return this.gameprocess.mouseUp(var1, var2, var3);
- }
-
- public boolean mouseDown(Event var1, int var2, int var3) {
- return this.gameprocess.mouseDown(var1, var2, var3);
- }
-
- public boolean mouseMove(Event var1, int var2, int var3) {
- return this.gameprocess.mouseMove(var1, var2, var3);
- }
-
- public boolean mouseDrag(Event var1, int var2, int var3) {
- return this.gameprocess.mouseDrag(var1, var2, var3);
- }
-
- public void stop() {
- this.gameprocess.stop();
- }
-
- public void destroy() {
- this.gameprocess.destroy();
- }
-
- public boolean gotFocus(Event var1, Object var2) {
- this.fPose = false;
- return true;
- }
-
- public boolean lostFocus(Event var1, Object var2) {
- this.fPose = true;
- return true;
- }
-
- public void setPose(boolean var1) {
- this.fPose = var1;
- }
-
- public void setImmortal(boolean var1) {
- this.fImmortal = var1;
- }
-
- public void setSelect(boolean var1) {
- this.fSelect = var1;
- }
-
- public boolean getPose() {
- return this.fPose;
- }
-
- public boolean getImmortal() {
- return this.fImmortal;
- }
-
- public boolean getSelect() {
- return this.fSelect;
- }
- }
-